.PHONY:all
all:tcp_client tcp_server

LDFLAG:#-DSelfDefine=1
tcp_client:TcpClientMain.cc
	g++ -o $@ $^ $(LDFLAG) -std=c++14 -ljsoncpp
tcp_server:TcpServerMain.cc
	g++ -o $@ $^ $(LDFLAG) -std=c++14 -lpthread -ljsoncpp

.PHONY:clean
clean:
	rm -f tcp_client tcp_server
